package homeWork0601;

public class Keche extends Car {

    private String pinPai;

    public Keche(int zuJin, String pinPai) {
        super("客车", zuJin);
        this.pinPai = pinPai;
    }

    public Keche() {
    }

    @Override
    protected String xinXi() {
        String msg = "";
        msg+="类型"+getLeiXin()+"\r\n";
        msg+="品牌"+pinPai+"\r\n";
        msg+="天数"+getTianShu()+"\r\n";
        msg+="租金"+getZuJin()+"\r\n";
        return msg;
    }
}
